home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / qbasicpg.zip / GOODBEAR.BAS < prev    next >
BASIC Source File  |  1989-08-31  |  474b  |  23 lines

  1. ' GOODBEAR.BAS
  2. ' This program is the corrected version of BADBEAR.BAS.
  3.  
  4. CLS
  5.  
  6. DIM bears$(5)                              ' dimension string array
  7.  
  8. PRINT "Enter the names of your five favorite bears."
  9. PRINT
  10.  
  11. FOR i% = 1 TO 5                            ' get 5 strings
  12.     INPUT "Bear:  ", bears$(i%)
  13. NEXT i%
  14.  
  15. PRINT
  16. PRINT "You entered the following bears:"
  17. PRINT
  18.  
  19. FOR i% = 1 TO 5                            ' print 5 strings
  20.      PRINT bears$(i%)
  21. NEXT i%
  22.  
  23.